<me:UIHR x:Class="WPFExcelReport.TSWR"
                    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
                    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
                    xmlns:local="clr-namespace:ReflectionStudio.Components.UserControls;assembly=ReflectionStudio.Core" 
                    xmlns:ucd="clr-namespace:ReflectionStudio.Controls;assembly=ReflectionStudio.Controls"     
                    xmlns:me="clr-namespace:WPFExcelReport" 
                    xmlns:T="clr-namespace:WPFExcelReport;assembly=IntexBL" 
                    xmlns:Localization="clr-namespace:Localization;assembly=Localization"
                    Background="White"  
                     x:Name="TV"
                    Loaded="Window_Loaded"
     >
    <me:UIHR.Resources>
        <CollectionViewSource  x:Key="vwMaster"/>       <CollectionViewSource  x:Key="vwDetail"/> 
        <ucd:BoolToVisibilityConverter  x:Key="bv"/> 
        <ucd:NOTBoolToVisibilityConverter x:Key="nbv"/>
        <ucd:TextTrimmingConverter  x:Key="Trim"/>
        <ucd:GB2312Convert8859P1  x:Key="gb2312"/> 
        </me:UIHR.Resources> 
    <WrapPanel>
                <ComboBox Visibility="{Binding IsEdit,ElementName=TV,Converter={StaticResource bv}}"
                     IsEditable="True" 
                    Width="Auto"
                    MinWidth="100" 
                    SelectedValuePath="KEY" 
                    DisplayMemberPath="DES"
                    ItemsSource="{Binding Source={StaticResource vwMaster}}" 
                    DropDownOpened="ComboBox_DropDownOpened"
                    IsSynchronizedWithCurrentItem="True" 
            >
                </ComboBox  >
     
        <TextBlock Grid.Column="1"  
                           Visibility="{Binding IsEdit,ElementName=TV,Converter={StaticResource nbv}}"
                           Text="{Binding HRNNAME, Source={StaticResource vwMaster}, Converter={StaticResource ResourceKey=Trim}}" Width="Auto" />
            </WrapPanel>  
</me:UIHR>
